package com.wenlin.myproduction.bean;

import com.google.gson.Gson;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class User {
    @Expose
    @SerializedName("Uid")
    public int uid;
    @Expose
    @SerializedName("Account")
    public String account;
    @Expose
    public int Sex;//性别
    @Expose
    public String Birthday;//生日
    @Expose
    public int Stage;//学习阶段
    @Expose
    public int Grade;//年级
    @Expose
    public int ProvinceId;//省
    @Expose
    public int CityId;//市
    @Expose
    public int CountyId;//县
    @Expose
    public int ActivationType;
    @Expose
    public int DiamondNum;
    @Expose
    public int PurpleDiamondNum;
    @Expose
    public int DayToTarget;
    @Expose
    @SerializedName("UserName")
    public String userName;
    @Expose
    public String Tel;
    @Expose
    public String Headurl;
    @Expose
    public boolean SuperFlag;
    @Expose
    public boolean AccountFlag;//账号修改标识
    @Expose
    public boolean CompleteFlag;//完善信息标识
    @Expose
    public boolean EvaFlag;//测评标识
    @Expose
    public int ContinuousPunch;//连续打卡天数
    @Expose
    public int AbilityLevel;//当前等级
    @Expose
    public String LevelName;//等级名称
    @Expose
    public int LevelValue;//当前等级value 值
    @Expose
    public int ContinueDays;
    @Expose
    public String BeatRate;
    @Expose
    public int Age;
    @Expose
    public double HelpCount;
    @Expose
    public int RecordSongCount;
    @Expose
    public int CouponCount;//礼品兑换券数量
    @Expose
    public int PunchCoin;//15天周期内，第一次1500，第二次3000，第三次6000，是一个
    @Expose
    public List<String> Tvtime;
    @Expose
    public int ActivationLeftDays;//可激活的剩余时间
    @Expose
    public String ActivationTime;//激活时间，在判断是否要显示补打卡UI时用到
    @Expose
    public String ValidTime;//到期时间
    @Expose
    public String TvStart;
    @Expose
    public String TvEnd;
    @Expose
    public int LearnLevel;
    @Expose
    public String FrontPhoto;
    @Expose
    public PunchData PunchData;
    @Expose
    public boolean PetOpenFlag;//是否开启宠物星球
    @Expose
    public StudyPlanInfoBean StudyPlanInfo;//20201113新增用于学习中心显示等级已完成的进度条，具体为已完成计划占该等级总计划数的百分比
    @Expose
    public List<MyWorldBean> MyWorldInfo;
    @Expose
    public int MiniProUid;//小程序ID
    @Expose
    public SharePadInfoBean SharePadInfo;
    @Expose
    public boolean TaskDrawFlag;//今日任务是否都完成了可以抽奖了
    @Expose
    public String TeacherQrCode;//班主任二维码图片地址

    public String tojson() {
        return new Gson().toJson(this);
    }

    public class StudyPlanInfoBean {
        @Expose
        public int AllPlanCount;
        @Expose
        public int StudyCount;
    }

    public class PunchData {
        @Expose
        public Long ListenSec;

        @Expose
        public Long OnlineSec;

        @Expose
        public Long ReadSec;
    }

    public class MyWorldBean {
        @Expose
        public int BusinessId;
        @Expose
        public int CostDiamond;
    }

    public class SharePadInfoBean {
        @Expose
        public boolean FinishFlag;
        @Expose
        public int LevelCount;
    }

}
